package com.lsj.dto.sys;

import com.lsj.core.validate.Update;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author:lin.sj
 * @Data:2021/7/8 21:49
 * @Desc: 菜单更新dto
 */
@Data
@Accessors(chain = true)
public class MenuUpdateDto {
    /**
     * 主键
     */
    @NotNull(message = "菜单主键不能为空",groups = {Update.class})
    private Long id;

    /**
     * 菜单名称
     */
    @NotBlank(message = "菜单名称不能为空",groups = {Update.class})
    private String menuName;

    /**
     * 跳转URL
     */
    private String url;

    /**
     * 菜单图标
     */
    private String icon;

    /**
     * 0:启用,1:禁用
     */
    @NotNull(message = "启用状态不能为空",groups = {Update.class})
    private Boolean status;

}
